const {join} = require('path')
//path.join拼接路径
console.log(join('/usr','loc','haha/'))
console.log(join('/usr///','..//lll','sds////'))
/*
输出结果
/usr/loc/haha/
/lll/sds/
 */